From e5915c9b049515235c3819bbd77efaaa1abaaf99 Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Tue, 14 Apr 2026 19:30:23 +0200 Subject: [PATCH] Prefer using G_SOURCE_* constants instead of TRUE/FALSE Makes the semantics clearer. Part-of: --- src/shell-global.c | 6 +++--- src/shell-perf-log.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/shell-global.c b/src/shell-global.c index 1fbc0ddb5..97b46e5cc 100644 --- a/src/shell-global.c +++ b/src/shell-global.c @@ -1267,11 +1267,11 @@ run_leisure_functions (gpointer data) /* We started more work since we scheduled the idle */ if (global->work_count > 0) - return FALSE; + return G_SOURCE_REMOVE; /* No leisure closures, so we are done */ if (global->leisure_closures == NULL) - return FALSE; + return G_SOURCE_REMOVE; closures = global->leisure_closures; global->leisure_closures = NULL; @@ -1289,7 +1289,7 @@ run_leisure_functions (gpointer data) g_slist_free (closures); - return FALSE; + return G_SOURCE_REMOVE; } static void diff --git a/src/shell-perf-log.c b/src/shell-perf-log.c index b2c8591e8..1de97f4fb 100644 --- a/src/shell-perf-log.c +++ b/src/shell-perf-log.c @@ -190,7 +190,7 @@ statistics_timeout (gpointer data) shell_perf_log_collect_statistics (perf_log); - return TRUE; + return G_SOURCE_CONTINUE; } /** -- 2.39.5